//
//  CMDBVCodeBean.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBVCodeParam: CMDBBasicParamBean {
    
    var phone: String = ""
    
    var type: String {
        
        guard vcodeType != CMDBVCodeType.UnKnown else {
            
            return ""
        }
        return "\(vcodeType.rawValue)"
    }
    var vcodeType: CMDBVCodeType = CMDBVCodeType.UnKnown
}
extension CMDBVCodeParam {
    
    override func URLString() -> String {
        
        return CMDB_Http_Formal_Domain + "/app/user/\(server_Version)/sendVCode?"
    }
}